<?php

class BaseController {

    static protected $module = '';
    static protected $class = '';
    static protected $action = '';
    static protected $http_css = '';
    static protected $http_images = '';
    static protected $http_js = '';
    static protected $css_file = array();
    static protected $js_file_header = array();
    static protected $js_file_footer = array();
    static protected $SEO = array(
        'title' => '',
        'key' => '',
        'des' => ''
    );

    /**
      +-------------------------------------------------------------------------
     * 设置ui前缀
      +-------------------------------------------------------------------------
     */
    static protected function setUiPath() {
        //通用的前端资源
        self::$css_file = array(
            HTTP_UI . 'fonts/iconfont.css',
            HTTP_UI . 'common/css/common.css',
        );
        self::$js_file_header = array(
            HTTP_UI . 'common/js/jquery-1.11.3.min.js',
            HTTP_UI . 'common/js/jquery.placeholder.min.js'
        );
        self::$js_file_footer = array(
            HTTP_UI . 'common/js/common.js'
        );

        self::$http_css = HTTP_UI . self::$module . '/css/';
        self::$http_js = HTTP_UI . self::$module . '/js/';
        self::$http_images = HTTP_UI . self::$module . '/images/';
    }

}
